package com.starbugs.wehcat.controller;


import com.starbugs.wehcat.aop.UserAccess;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author starbooks
 */
@RestController
public class FirstController {

  @RequestMapping("/first")
  public Object first() {
    return "first controller";
  }

//  @RequestMapping("/error")
//  public Object errorPage() {
//    return "error page";
//  }

  @RequestMapping("/second")
  @UserAccess(desc = "second")
  public Object second() {
    return "second controller";
  }

}